package ${basePackage};

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
<#if needDatabase>
import org.mybatis.spring.annotation.MapperScan;
</#if>

/**
 * ${name} 启动类
 *
 * @author ${author}
 */
@SpringBootApplication
<#if needDatabase>
@MapperScan("${basePackage}.mapper")
</#if>
public class ${mainClassName} {
    public static void main(String[] args) {
        SpringApplication.run(${mainClassName}.class, args);
        System.out.println("${name} 启动成功!");
    }
}
